<div class="col-sm-12 mt20">
  <div class="panel panel-default">
    <div class="panel-body">

      <div class="row mt10">
        <div class="col-sm-5">
          <div class="input-group" >
            <div class="input-group-btn" >
              <span class="btn btn-default">企业类型</span>
            </div>
            <ui-select ng-model="search.type" theme="bootstrap">
              <ui-select-match placeholder="选择企业类型.." ng-init="search.type = type_list[0]">{{$select.selected.label}}</ui-select-match>
              <ui-select-choices repeat="item in type_list | filter: $select.search">
                <span ng-bind-html="item.label"></span>
              </ui-select-choices>
            </ui-select>
          </div>
        </div>
        <div class="col-sm-2">
          <button class="btn btn-block btn-info" ng-click="searchType()">搜索</button>
        </div>
        <div class="col-sm-2">
          <button class="btn btn-block btn-info" ng-if="no_pass" ng-click="noPass()">查看未通过企业</button>
          <button class="btn btn-block btn-info" ng-if="!no_pass" ng-click="back()">返回</button>
        </div>
      </div>

    </div>
  </div>

  <div class="panel panel-default">
    <div class="panel-body">
 
      <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" style="table-layout: fixed;">
        <thead>
          <tr>
            <th class="col-md-2 text-center">企业名称</th>
            <th class="col-md-1 text-center">企业编号</th>
            <th class="col-md-1 text-center">联系人</th>
            <th ng-if="no_pass" class="col-md-1 text-center">注册类型</th>
            <th ng-if="no_pass" class="col-md-1 text-center">注册时间</th>
            <th ng-if="!no_pass" class="col-md-2 text-center">未通过原因</th>
            <th class="col-md-1 text-center"></th>
          </tr>
        </thead>
        <tbody class="tabel_body">
          <tr ng-repeat="info in enterpriseList">
            <td class="text-center">{{info.enterprise_name}}</td>
            <td class="text-center">{{info.enterprise_code}}</td>
            <td class="text-center">{{info.contact_name}}</td>
            <td ng-if="no_pass" class="text-center">{{info.r_type}}</td>                    
            <td ng-if="no_pass" class="text-center">{{info.create_time}}</td>                    
            <td ng-if="!no_pass">
              <div style="width:260px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;">
                {{info.no_pass_reason}}
              </div>
            </td>                    
            <td class="text-center">
              <button type="button" class="btn btn-info btn-xs" ng-if="!no_pass" ng-click="reason(info)">未通过原因</button>
              <button type="button" class="btn btn-info btn-xs" ng-if="!no_pass" ng-click="recheck(info)">重审</button>
              <button type="button" class="btn btn-info btn-xs" ng-if="no_pass" ng-click="check(info)">审核</button>
            </td>
          </tr>
        </tbody>
      </table>

      <div class="text-right" style="background-color: white">
        <pagination total-items="totalItems" ng-model="currentPage" ng-change="searchType()" previous-text="上一页" 
          next-text="下一页" first-text="首页" last-text="尾页" max-size="5" boundary-links="true" 
          rotate="false" items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
      </div>

    </div>
  </div>

</div>